package com.study.design.pattern.pattern.behavioral.strategy;

import java.math.BigDecimal;

/**
 * @Author: gongsl
 * @Date: 2025-03-23 14:41
 */
public class Test {
    public static void main(String[] args) {
        String payType = "Aipay";
        BigDecimal amount = new BigDecimal("136.89");
        PaymentStrategy paymentStrategy = PaymentStrategyFactory.getPaymentStrategy(payType);
        paymentStrategy.pay(amount);
    }
}
